package com.example.ctrip.service.Impl;

import com.example.ctrip.dao.OrderActivitiDao;
import com.example.ctrip.entity.OrderActiviti;
import com.example.ctrip.entity.OrderTicketActiviti;
import com.example.ctrip.service.OrderActivitiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("orderActivitiServiceImpl")
public class OrderActivitiServiceImpl implements OrderActivitiService {

    @Autowired
    OrderActivitiDao orderActivitiDao;

    @Override
    public int insertActiciti(OrderTicketActiviti orderTicketActiviti) {
        return orderActivitiDao.insertActiciti(orderTicketActiviti);
    }

    @Override
    public List<OrderActiviti> selectByOrderId(Integer id) {
        return orderActivitiDao.selectByOrderId(id);
    }

    @Override
    public List<OrderActiviti> selectByOrderIdHd(Integer id) {
        return orderActivitiDao.selectByOrderIdHd(id);
    }
}
